package com.mazaiting.ftp.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Ftp 自定义异常
 * @Author danghailiang
 * @Date: 2022/4/24 10:55
 * @Version 1.0
 */
public class FtpException extends RuntimeException{

    /**
     * 错误消息
     */
    private String message;

    public FtpException(String message){
        super(message);
        // 日志服务(暂时捕获就打印错误)
        Logger logger = LoggerFactory.getLogger(this.getClass());
        logger.error(message);
    }
}
